import { isClient, isDevelop } from '@/utils/setting'

const { API_URL, API_PREFIX } = require('../../.env')
export const DOMAIN = (() => {
  if (!isClient()) {
    if (isDevelop()) {
      return process.env.PROXY;
    }
    return API_URL;
  }

  return '';
})();

export const PREFIX = API_PREFIX
export const BASE_URL = DOMAIN + PREFIX
